package xixirupan.tmgp.tencent.com.vmeim.ui.beautycircle.presenter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

/**
 * Created by lenovo on 2016/10/20.
 */

public class CirclePagerAdapter extends FragmentPagerAdapter {

    private List<Fragment> lists;
    private FragmentManager fm;
    private String []tabTitles;
    public CirclePagerAdapter(FragmentManager fm,List<Fragment> lists,String []tabTitles) {
        super(fm);
        this.fm =fm;
        this.lists =lists;
        this.tabTitles =tabTitles;
    }

    @Override
    public Fragment getItem(int position) {
        return lists.get(position);
    }

    @Override
    public int getCount() {
        return lists.size();
    }

    @Override
    public CharSequence getPageTitle(int position) {
        return tabTitles[position];
    }
}
